//
//  HomeTableViewCell.m
//  GameBaby
//
//  Created by keyZhang on 13-12-19.
//  Copyright (c) 2013年 keyZhang. All rights reserved.
//

#import "HomeTableViewCell.h"

@implementation HomeTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    [self.headImgView setImageWithURL:[NSURL URLWithString:self.model.img]];
    self.gNameLabel.text = self.model.name;
    self.gCompanyLabel.text = [NSString stringWithFormat:@"运营商:%@",self.model.firm];
    if ([self.model.softsize isEqualToString:@""]) {
        self.gSizeLabel.text = [NSString stringWithFormat:@"大小:未知"];
    }else
    {
        self.gSizeLabel.text = [NSString stringWithFormat:@"大小:%@",self.model.softsize];
    }
    self.gCountLabel.text = [NSString stringWithFormat:@"发号量:%@",self.model.ka_num];
}

@end
